/**
 * Copyright 2013 ABSir's Studio
 * 
 * All right reserved
 *
 * Create on 2013-8-12 下午11:28:19
 */
package com.absir.android.goods;

import java.util.Collection;

/**
 * @author absir
 * 
 */
public interface IGoodsDefine {

	/**
	 * @return
	 */
	public Collection<IGoodsInfo> getGoodsInfos();

	/**
	 * @param tag
	 * @return
	 */
	public IGoodsInfo getGoodsInfo(Object tag);

	/**
	 * @param tag
	 * @return
	 */
	public int getGoodsInfoCount(Object tag);

	/**
	 * @param tag
	 * @param count
	 * @return
	 */
	public boolean gainGoodsInfo(Object tag, int count);

	/**
	 * @param tag
	 * @param count
	 * @return
	 */
	public boolean consumeGoodsInfo(Object tag, int count);
}
